package com.weishaoying.api.service;

import com.facebook.swift.service.ThriftMethod;
import com.facebook.swift.service.ThriftService;
import com.weishaoying.api.entity.User;
import com.weishaoying.api.enums.GenderEnum;
import org.apache.thrift.TException;

import java.util.List;
import java.util.Map;

/**
 * @author WeiShaoying
 * @date 2018/9/27
 */
@ThriftService
public interface UserThriftService {

    @ThriftMethod
    User queryUserByGender(GenderEnum gender) throws TException;

    @ThriftMethod
    List<User> queryUsersByIdList(List<Integer> ids) throws TException;


    @ThriftMethod
    List<User> queryUsersByMap(User user, Map<String, String> map);

}
